﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HTMLLive
{
    public partial class frmNewProject : Form
    {
        public frmNewProject()
        {
            InitializeComponent();

            //rbUseAuctionID.CheckedChanged += new EventHandler(UseType_CheckedChanged);
            //rbUseAuctionURL.CheckedChanged += new EventHandler(UseType_CheckedChanged);
        }

        private void TestURL()
        {
            Helper.HTMLCode = Helper.webresponse.GetWebResponse(txAuctionURL.Text);
            Close();
        }

        private void Buttons_Click(object sender, EventArgs e)
        {
            if (sender == btnOk)
            {
                TestURL();
            }
            else
            {
                Close();
            }
        }

        private void UseType_CheckedChanged(object sender, EventArgs e)
        {
            //if (sender == rbUseAuctionID)
            //{
            //    groupBox1.Enabled = rbUseAuctionID.Checked;
            //    groupBox2.Enabled = rbUseAuctionURL.Checked;
            //}
            //else if (sender == rbUseAuctionURL)
            //{
            //    groupBox1.Enabled = rbUseAuctionID.Checked;
            //    groupBox2.Enabled = rbUseAuctionURL.Checked;
            //}
        }

        private void frmNewProject_Load(object sender, EventArgs e)
        {

        }
    }
}
